home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / csim / source.lha / source / C++SIM / ProcessList.h < prev    next >
C/C++ Source or Header  |  1993-06-14  |  723b  |  45 lines

  1. /*
  2.  * Copyright (C) 1993
  3.  *
  4.  * Department of Computing Science,
  5.  * The University,
  6.  * Newcastle upon Tyne,
  7.  * UK.
  8.  */
  9.  
  10. #ifndef PROCESSLIST_H_
  11. #define PROCESSLIST_H_
  12.  
  13. #ifndef COMMON_H_
  14. #include "common.h"
  15. #endif
  16.  
  17. #ifndef PROCESS_H_
  18. #include "Process.h"
  19. #endif
  20.  
  21. #ifndef PROCESSITERATOR_H_
  22. #include "ProcessIterator.h"
  23. #endif
  24.  
  25. #ifndef PROCESSCONS_H_
  26. #include "ProcessCons.h"
  27. #endif
  28.  
  29.  
  30. class ProcessList
  31. {
  32. public:
  33.     ProcessList ();
  34.     void Insert (Process &, boolean prior=false);
  35.     boolean InsertBefore (Process &ToInsert, Process &Before);
  36.     boolean InsertAfter (Process &ToInsert, Process &After);
  37.     Process *Remove (const Process *p=0);
  38.  
  39. private:
  40.     friend class ProcessIterator;
  41.     ProcessCons *Head;
  42. };
  43.  
  44. #endif
  45.